home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / barcodes.zip / SAMPLE1.ZIP / BARFM.CPP < prev    next >
C/C++ Source or Header  |  1994-11-07  |  1KB  |  59 lines

  1. // (c) Copyright 1994 HEX TECHNOLOGY. All rights reserved.
  2. // This sample code is provided as a example implementation
  3. // using barcodes.dll.  You may only distribute or modify this
  4. // code if you purchase a license for barcodes.dll.
  5.  
  6.  
  7.  
  8. #include "stdafx.h"
  9. #include "bartest.h"  
  10. #include "bardoc.h"
  11. #include "barvw.h"
  12.   
  13. #ifdef _DEBUG
  14. #undef THIS_FILE
  15. static char BASED_CODE THIS_FILE[] = __FILE__;       
  16. #endif
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CBarFrame
  20.  
  21. IMPLEMENT_DYNCREATE(CBarFrame, CMDIChildWnd)
  22.  
  23. CBarFrame::CBarFrame()
  24. {
  25. }
  26.  
  27. CBarFrame::~CBarFrame()
  28. {
  29. }
  30.  
  31.  
  32. BEGIN_MESSAGE_MAP(CBarFrame, CMDIChildWnd)
  33.     //{{AFX_MSG_MAP(CBarFrame)
  34.      //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()                   
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CBarFrame message handlers
  39.  
  40. BOOL CBarFrame::PreCreateWindow(CREATESTRUCT &lpCreateStruct) { 
  41.   CMDIChildWnd::PreCreateWindow(lpCreateStruct);                     
  42.    
  43.    lpCreateStruct.style -= WS_MAXIMIZEBOX;  
  44.    if( lpCreateStruct.style & WS_VSCROLL)
  45.       lpCreateStruct.style -= WS_VSCROLL;  
  46.   if( lpCreateStruct.style & WS_HSCROLL)
  47.       lpCreateStruct.style -= WS_HSCROLL;  
  48.   if( lpCreateStruct.style & WS_THICKFRAME)
  49.       lpCreateStruct.style -= WS_THICKFRAME;  
  50.  
  51.   return TRUE;
  52. }
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.